
from random import randint

#生成10个随机数
lst = []
for k in range(10):
    lst.append(randint(1,100))
print("origin:",lst)
for i in range(len(lst)-1):
    for j in range(len(lst)-i-1):
        if lst[j]>lst[j+1]:
            lst[j],lst[j+1] = lst[j+1],lst[j]
print("sort:",lst)